<!doctype html>
 <html lang="zh-CN">
 <head>
   <meta charset="UTF-8">
   <link rel="stylesheet" href="../view/admin/css/common.css">
   <link rel="stylesheet" href="../view/admin/css/main.css">
   <script type="text/javascript" src="../view/admin/js/jquery.min.js"></script>
   <script type="text/javascript" src="../view/admin/js/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="../view/admin/js/common.js"></script>
   
   <script type="text/javascript">
      $(function(){  
        $(".list_table").colResizable({
          liveDrag:true,
          gripInnerHtml:"<div class='grip'></div>", 
          draggingClass:"dragging", 
          minWidth:30
        }); 
        
      }); 
   </script>
   <title>角色列表</title>
 </head>
 <body>
   <div class="container">
     <div id="table" class="mt10">
        <div class="box span10 oh">
          <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">                
              <tr>

                <th colspan="4">角色列表</th>  

                </tr>

                <tr class="tr" align='center'>
                   <td width="20%"  class="td_center">ID</td>
                   <td width="25%"  class="td_center">角色名称</td>
                   <td width="25%"  class="td_center" >开启状态</td>
                   <td width="25%"  class="td_center" >操作</td>
                </tr>
                
           <?php foreach ($data as $v ){ ?>

            <tr  class="tr">

	           <td class="td_center"><?php echo $v['role_id']?></td>
	           <td class="td_center"><?php echo $v['name']?></td>
	           <td class="td_center"><?php if($v['status']==1){echo '开启';}else{echo '关闭';} ?></td>
	

	           <td class="td_center"><a href="index.php?c=user&a=rolePower&role_id=<?php echo $v['role_id']?>">配置权限</a> | <a href="index.php?c=user&a=RoleDel&id=<?php echo $v['role_id']?>" onclick="return confirm('你确定要删除该角色？')">删除角色</a></td>

             </tr>
         <?php }?>
           </table>      
        </div>
     </div>
   </div>
 </body>
 </html>
  
